<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
</head>
<body>

<div id="append"></div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><h3> 数据库优化</h3>
<table class="datalist fixwidth" >
<tr>
<th style="width:150px;">数据表</td>
<th style="width:100px;">数据表类型</td>
<th style="width:80px;">记录数</td>
<th style="width:100px;">数据</td>
<th style="width:80px;">碎片</td>
<th style="width:120px;">字符集</td>
<th>状态</td>
</tr>
<? if(is_array($tablelist)) { foreach($tablelist as $key => $value) { ?>
<tr>
<td><?=$value['table']?></td>
<td><?=$value['type']?></td>
<td><?=$value['rec_num']?></td>
<td><?=$value['rec_index']?></td>
<td><?=$value['rec_chip']?></td>
<td><?=$value['chartset']?></td>
<td><?=$value['status']?></td>
</tr>
<? } } ?>
<tr>
<td colspan="7">总碎片数:<?=$number?>&nbsp;
<input type="button" class="btn" value="开始进行数据表优化" name="opsubmit" onclick="javascript:window.location='index.php?admin_db/optimize'" />
<input type="button" class="btn" value="开始进行数据表修复" name="resubmit" onclick="javascript:window.location='index.php?admin_db/repair'" /></td>
</tr>
</table>

</div>	
</body>
</html>
